{% extends "base/base.html" %}

{% comment %}

 Copyright 2013 - Tom Alessi

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and 
 limitations under the License.

{% endcomment %}

{% block content %}
		
<form method="POST" action="/admin/admin_config">
{% csrf_token %}

<div class="row">
	{# This is a large-3 side nav #}
	{% include "admin/side_nav.html" %}

	<div class="large-9 columns">

	  <div class="row">
	    <div class="large-12 columns">
	      <h1>Admin Configuration</h1>
	      <p>Use the field below to modify the behavior of the admin link.</p>
	      <hr>
	    </div>
	  </div>

    {# This is row consisting of 12 columns that will display all messages passed in the request #}
    {% include "admin/messages.html" %}

	  <div class="row">
	    <div class="large-12 columns">
        <span class="radius secondary label">Enable Admin Link</span><br>
        <div class="sublabel_container"><span class="sublabel">Select the checkbox to enable the admin link in the site header.  If you do not enable this link, you will need to access the link directly to access the admin (/admin).</span></div>
	    </div>
	  </div>

	  <div class="row">
	    <div class="large-12 columns">
				<label><input type="checkbox" name="link_enabled" {% if form.link_enabled.data %}checked{% else %}{% if admin_config.0.link_enabled == 1 %}checked{% endif %}{% endif %} />&nbsp;Enabled</label>
	   		{% if form.link_enabled.errors %}
				<span class="error">{% for error in form.link_enabled.errors %}{{error}}<br>{% endfor %}<br></span>
		    {% endif %} 
			</div>
		</div>

		<div class="spacer_small"></div>

		<div class="row">
		  <div class="large-12 columns">
		    <input type="submit" class="small button" value="Save"/>
		  </div>
		</div>
		
	</div>
</div>

</form>

{% endblock %}



